home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat3
/
Tk
/
focusnext.z
/
focusnext
Wrap
Text File
|
1998-10-30
|
4KB
|
67 lines
ttttkkkk____ffffooooccccuuuussssNNNNeeeexxxxtttt((((3333TTTTkkkk)))) ttttkkkk____ffffooooccccuuuussssNNNNeeeexxxxtttt((((3333TTTTkkkk))))
NNNNAAAAMMMMEEEE
tk_focusNext, tk_focusPrev, tk_focusFollowsMouse - Utility procedures for
managing the input focus.
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
ttttkkkk____ffffooooccccuuuussssNNNNeeeexxxxtttt _w_i_n_d_o_w
ttttkkkk____ffffooooccccuuuussssPPPPrrrreeeevvvv _w_i_n_d_o_w
ttttkkkk____ffffooooccccuuuussssFFFFoooolllllllloooowwwwssssMMMMoooouuuusssseeee
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
ttttkkkk____ffffooooccccuuuussssNNNNeeeexxxxtttt is a utility procedure used for keyboard traversal. It
returns the ``next'' window after _w_i_n_d_o_w in focus order. The focus order
is determined by the stacking order of windows and the structure of the
window hierarchy. Among siblings, the focus order is the same as the
stacking order, with the lowest window being first. If a window has
children, the window is visited first, followed by its children
(recursively), followed by its next sibling. Top-level windows other
than _w_i_n_d_o_w are skipped, so that ttttkkkk____ffffooooccccuuuussssNNNNeeeexxxxtttt never returns a window in a
different top-level from _w_i_n_d_o_w.
After computing the next window, ttttkkkk____ffffooooccccuuuussssNNNNeeeexxxxtttt examines the window's
----ttttaaaakkkkeeeeffffooooccccuuuussss option to see whether it should be skipped. If so,
ttttkkkk____ffffooooccccuuuussssNNNNeeeexxxxtttt continues on to the next window in the focus order, until it
eventually finds a window that will accept the focus or returns back to
_w_i_n_d_o_w.
ttttkkkk____ffffooooccccuuuussssPPPPrrrreeeevvvv is similar to ttttkkkk____ffffooooccccuuuussssNNNNeeeexxxxtttt except that it returns the window
just before _w_i_n_d_o_w in the focus order.
ttttkkkk____ffffooooccccuuuussssFFFFoooolllllllloooowwwwssssMMMMoooouuuusssseeee changes the focus model for the application to an
implicit one where the window under the mouse gets the focus. After this
procedure is called, whenever the mouse enters a window Tk will
automatically give it the input focus. The ffffooooccccuuuussss command may be used to
move the focus to a window other than the one under the mouse, but as
soon as the mouse moves into a new window the focus will jump to that
window. Note: at present there is no built-in support for returning the
application to an explicit focus model; to do this you'll have to write
a script that deletes the bindings created by ttttkkkk____ffffooooccccuuuussssFFFFoooolllllllloooowwwwssssMMMMoooouuuusssseeee.
KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
focus, keyboard traversal, top-level
PPPPaaaaggggeeee 1111